//公司职位
import React, { Component } from 'react';
import {
    View,
    Text,
    Image,
    TouchableOpacity,

} from 'react-native';

import { chooseStyle as styles } from '../../../../styles';
import Icon from 'react-native-vector-icons/Ionicons';

var Dimensions = require('Dimensions');
var width = Dimensions.get('window').width;
var height = Dimensions.get('window').height;



export default class Choose extends Component {
    render() {
        const {detail} = this.props;
        return (
            <View style={[styles.chooseall, { flex: 1, backgroundColor: '#ffffff' }]}>

                <TouchableOpacity style={styles.resicon1} onPress={() => { this.props.navigation.goBack() }} activeOpacity={1}>
                    <Icon
                        name={'ios-arrow-back'}
                        size={30}
                        color={'#3d9ccc'} />
                </TouchableOpacity>

                <View style={styles.top}>
                    <Image source={require('../../../img/Login/per.png')} style={[styles.head, { width: width * 0.47, height: height * 0.22, marginTop: height * 0.1 }]} />
                    <TouchableOpacity style={[styles.butt, {
                        width: width * 0.6,
                        elevation: 3,
                        shadowColor: 'black',
                        shadowOpacity: 1,
                        shadowRadius: 5,
                    }]} onPress={() => { this.goGet(0) }}>
                        <Text style={styles.text}>我要求职</Text>
                    </TouchableOpacity>
                </View>

                <View style={[styles.or, { width: width * 0.87 }]}>
                    <Text style={[styles.line, { width: width * 0.37 }]}></Text>
                    <TouchableOpacity style={styles.linet} onPress={() => { }}>
                        <Text style={styles.linein}>或者</Text>
                    </TouchableOpacity>
                    <Text style={[styles.line, { width: width * 0.37 }]}></Text>
                </View>


                <View style={styles.top}>
                    <Image source={require('../../../img/Login/com.png')} style={[styles.head, { width: width * 0.47, height: height * 0.23, marginTop: height * 0.03 }]} />
                    <TouchableOpacity style={[styles.butt, {
                        width: width * 0.6,
                        elevation: 3,
                        shadowColor: 'black',
                        shadowOpacity: 1,
                        shadowRadius: 5,
                    }]} onPress={() => { this.goGet(1) }}>
                        <Text style={styles.text}>我要招人</Text>
                    </TouchableOpacity>
                </View>


            </View >

        )
    }
    goGet(a) {
        this.props.navigation.navigate('Register', {type:a})
    }
}
